<template>
  <div class="xiangqin">
    <div class="top1111">
      <img @click="previous" src="../assets/总图标包含整个系统的/fanhui.png" />
      <span>消息详情</span>
      <span></span>
    </div>
    <div class="content">
      <div class="top">
        <div class="left">
          <p>{{ title }}</p>
          <p class="att">
            发布人: <span> {{ sourceName }}</span>
          </p>
        </div>
        <div class="right">{{ createTime }} 23:15</div>
      </div>
      <div class="bottom">
        <p>1.{{ msgDate }}</p>
        <!-- <p>2.字体</p>
        <p>3.非WiFi</p> -->
      </div>
    </div>
  </div>
</template>
 
<script>
import { GetXiaoPingXList } from "../request/aip";
export default {
  data() {
    return {
      title: "",
      sourceName: "",
      createTime: "",
      msgDate: "",
    };
  },
  methods: {
    previous() {
      this.$router.go(-1);
    },
  },
  created() {
    console.log(this.$route.params.id);
    GetXiaoPingXList({
      id: this.$route.params.id,
    }).then((res) => {
      console.log(res);
      this.title = res.data.title;
      this.sourceName = res.data.sourceName;
      this.createTime = res.data.createTime;
      this.msgDate = res.data.msgDate;
    });
  },
};
</script>
 
<style lang = "less" scoped>
.xiangqin {
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
  overflow: hidden;
  .content {
    background-color: #fff;
    padding: 10px;
    margin-top: 10px;
    .top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      .left {
        .att {
          color: #ccc;
          font-size: 15px;
          margin-top: 3px;
        }
      }
      .right {
        color: #ccc;
        font-size: 14px;
      }
    }
    .bottom {
      p {
        color: #999;
        font-size: 15px;
        margin: 8px;
      }
    }
  }
}
.top1111 {
  display: flex;
  background-color: #003399;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 10px;
  span {
    color: #fff;
    font-size: 16px;
  }
  img {
    width: 10px;
    height: 20px;
  }
}
</style>